import http from '@/utils/http.js'
const prefix = '/auth';

export default{
	/**
	* 模拟登录
	*/
	mockWxLogin(params){
		return http.post(`${prefix}/mockLogin`,params)
	},
	/**
	* 微信小程序的给 wxlogin 方法后调用的服务端方法
	*/
	wxLogin(code,parentId){		
		if(parentId){
			return http.post(`${prefix}/wxlogin?code=${code}&parentId=${parentId}`)
		}else{
			return http.post(`${prefix}/wxlogin?code=${code}`)
		}		
	},
	test(){
		return http.post(`${prefix}/wxlogin`,{
    "PApplyStoreId":0,
    "KUserId": 439742,
"KWxConfigId": 3350,
"FStoreName" : "天猫小店",
    "FStoreAddress" : "汕头市金平区长平路21号",
    "FUserName": "王嘉庆",
    "FPhone" :"15913974609",
    "FImgs" : ["",""],
    "FBizImgs" : ["",""]
})
	}
}